package com.jf.demo;

import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ContentView;
import com.lidroid.xutils.view.annotation.ViewInject;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
@ContentView(R.layout.personal_info)
public class PersonalInfo extends Activity {
	
	private SharedPreferences useShare;
	@ViewInject(R.id.textView2)
	private TextView textView2;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		ViewUtils.inject(this);
		useShare = getSharedPreferences("userInfo", MODE_PRIVATE);
		String username = useShare.getString("username", "");
		textView2.setText(username);
	}
	
	public void finishPerson(View v){
		this.finish();
	}
}
